package com.atguigu.guli.service.edu.mapper;

import com.atguigu.guli.service.edu.entity.Course;
import com.atguigu.guli.service.edu.entity.vo.ApiCourseDetailVo;
import com.atguigu.guli.service.edu.entity.vo.CourseDetailVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author leo
 * @since 2021-11-24
 */
public interface CourseMapper extends BaseMapper<Course> {

    /*List<CourseDetailVo> selectCourseDetailVo(Page<CourseDetailVo> page);*/

    //queryMapper需要设置别名
    List<CourseDetailVo> selectCourseDetailVoPage(Page<CourseDetailVo> page,@Param("ew") QueryWrapper<CourseDetailVo> queryWrapper);

    ApiCourseDetailVo selectCourseDetailById(String courseId);
}
